// 所有和【居民项目服务管理】相关的请求

import { httpDelete, httpGet, httpPost, httpPut } from "@/utils/http"

export type ServiceItemsType = {
    _id?: string,
    name: string,
    count: string,
    type: string,
    price: string | number,
    intro: string,
}
// 查询居民项目服务管理数据
export const findServiceItemsApi = (data?: object) => {
    return httpPost('/serviceItems/search', data)
}
// 新增居民项目服务管理数据
export const addServiceItemsApi = (data?: object) => {
    return httpPost('/serviceItems/add', data)
}
// 删除居民项目服务管理数据
export const deleteServiceItemsApi = (data?: object) => {
    return httpDelete('/serviceItems/remove', data)
}
// 修改居民项目服务管理数据
export const updateServiceItemsApi = (data: object) => {
    return httpPut('/serviceItems/update', data)
}
//获取一个居民项目服务详情 /serviceItems/detail
export const detailServiceItemsApi = (data: object) => {
    return httpGet('/serviceItems/detail', data)
}